//package com.example.eventdemo.listener;
//
//import com.example.eventdemo.entity.User;
//import com.example.eventdemo.event.UserRegisterEvent;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.context.ApplicationListener;
//import org.springframework.stereotype.Component;
//
///**
// * 积分服务监听器
// * 监听用户注册事件，赠送初始积分
// */
//@Component
//@Slf4j
//public class PointListener implements ApplicationListener<UserRegisterEvent> {
//
//    @Override
//    public void onApplicationEvent(UserRegisterEvent event) {
//        User user = event.getUser();
//        log.info("用户[{}]注册成功，赠送100积分", user.getUsername());
//        // 实际项目中这里会调用积分服务API
//    }
//}